package com.example.base.db

import androidx.room.*
import com.example.base.entity.SearchBean

@Dao
interface SearchDao {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun addSearch(searchBean: SearchBean):Long

    @Query("select * from search order by id desc")
    fun getSearch():List<SearchBean>

    @Delete
    fun deleteSearch(bean: SearchBean): Int
}